package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"zy15_news/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/zy15news/create", &controllers.NewsController{}, "POST:Create")
	beego.Router("/zy15news/list", &controllers.NewsController{}, "Get:List")
	beego.Router("/zy15news/update", &controllers.NewsController{}, "POST:Update")
	beego.Router("/zy15news/del", &controllers.NewsController{}, "POST:Delete")

}
